package com.sunelec.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WeatherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WeatherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andWeatherIdIsNull() {
            addCriterion("weather_id is null");
            return (Criteria) this;
        }

        public Criteria andWeatherIdIsNotNull() {
            addCriterion("weather_id is not null");
            return (Criteria) this;
        }

        public Criteria andWeatherIdEqualTo(String value) {
            addCriterion("weather_id =", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdNotEqualTo(String value) {
            addCriterion("weather_id <>", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdGreaterThan(String value) {
            addCriterion("weather_id >", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdGreaterThanOrEqualTo(String value) {
            addCriterion("weather_id >=", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdLessThan(String value) {
            addCriterion("weather_id <", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdLessThanOrEqualTo(String value) {
            addCriterion("weather_id <=", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdLike(String value) {
            addCriterion("weather_id like", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdNotLike(String value) {
            addCriterion("weather_id not like", value, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdIn(List<String> values) {
            addCriterion("weather_id in", values, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdNotIn(List<String> values) {
            addCriterion("weather_id not in", values, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdBetween(String value1, String value2) {
            addCriterion("weather_id between", value1, value2, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWeatherIdNotBetween(String value1, String value2) {
            addCriterion("weather_id not between", value1, value2, "weatherId");
            return (Criteria) this;
        }

        public Criteria andWindSpeedIsNull() {
            addCriterion("wind_speed is null");
            return (Criteria) this;
        }

        public Criteria andWindSpeedIsNotNull() {
            addCriterion("wind_speed is not null");
            return (Criteria) this;
        }

        public Criteria andWindSpeedEqualTo(Float value) {
            addCriterion("wind_speed =", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedNotEqualTo(Float value) {
            addCriterion("wind_speed <>", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedGreaterThan(Float value) {
            addCriterion("wind_speed >", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedGreaterThanOrEqualTo(Float value) {
            addCriterion("wind_speed >=", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedLessThan(Float value) {
            addCriterion("wind_speed <", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedLessThanOrEqualTo(Float value) {
            addCriterion("wind_speed <=", value, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedIn(List<Float> values) {
            addCriterion("wind_speed in", values, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedNotIn(List<Float> values) {
            addCriterion("wind_speed not in", values, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedBetween(Float value1, Float value2) {
            addCriterion("wind_speed between", value1, value2, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindSpeedNotBetween(Float value1, Float value2) {
            addCriterion("wind_speed not between", value1, value2, "windSpeed");
            return (Criteria) this;
        }

        public Criteria andWindDirectionIsNull() {
            addCriterion("wind_direction is null");
            return (Criteria) this;
        }

        public Criteria andWindDirectionIsNotNull() {
            addCriterion("wind_direction is not null");
            return (Criteria) this;
        }

        public Criteria andWindDirectionEqualTo(Float value) {
            addCriterion("wind_direction =", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionNotEqualTo(Float value) {
            addCriterion("wind_direction <>", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionGreaterThan(Float value) {
            addCriterion("wind_direction >", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionGreaterThanOrEqualTo(Float value) {
            addCriterion("wind_direction >=", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionLessThan(Float value) {
            addCriterion("wind_direction <", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionLessThanOrEqualTo(Float value) {
            addCriterion("wind_direction <=", value, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionIn(List<Float> values) {
            addCriterion("wind_direction in", values, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionNotIn(List<Float> values) {
            addCriterion("wind_direction not in", values, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionBetween(Float value1, Float value2) {
            addCriterion("wind_direction between", value1, value2, "windDirection");
            return (Criteria) this;
        }

        public Criteria andWindDirectionNotBetween(Float value1, Float value2) {
            addCriterion("wind_direction not between", value1, value2, "windDirection");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureIsNull() {
            addCriterion("air_temperature is null");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureIsNotNull() {
            addCriterion("air_temperature is not null");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureEqualTo(Float value) {
            addCriterion("air_temperature =", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureNotEqualTo(Float value) {
            addCriterion("air_temperature <>", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureGreaterThan(Float value) {
            addCriterion("air_temperature >", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureGreaterThanOrEqualTo(Float value) {
            addCriterion("air_temperature >=", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureLessThan(Float value) {
            addCriterion("air_temperature <", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureLessThanOrEqualTo(Float value) {
            addCriterion("air_temperature <=", value, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureIn(List<Float> values) {
            addCriterion("air_temperature in", values, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureNotIn(List<Float> values) {
            addCriterion("air_temperature not in", values, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureBetween(Float value1, Float value2) {
            addCriterion("air_temperature between", value1, value2, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirTemperatureNotBetween(Float value1, Float value2) {
            addCriterion("air_temperature not between", value1, value2, "airTemperature");
            return (Criteria) this;
        }

        public Criteria andAirHumidityIsNull() {
            addCriterion("air_humidity is null");
            return (Criteria) this;
        }

        public Criteria andAirHumidityIsNotNull() {
            addCriterion("air_humidity is not null");
            return (Criteria) this;
        }

        public Criteria andAirHumidityEqualTo(Float value) {
            addCriterion("air_humidity =", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityNotEqualTo(Float value) {
            addCriterion("air_humidity <>", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityGreaterThan(Float value) {
            addCriterion("air_humidity >", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityGreaterThanOrEqualTo(Float value) {
            addCriterion("air_humidity >=", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityLessThan(Float value) {
            addCriterion("air_humidity <", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityLessThanOrEqualTo(Float value) {
            addCriterion("air_humidity <=", value, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityIn(List<Float> values) {
            addCriterion("air_humidity in", values, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityNotIn(List<Float> values) {
            addCriterion("air_humidity not in", values, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityBetween(Float value1, Float value2) {
            addCriterion("air_humidity between", value1, value2, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andAirHumidityNotBetween(Float value1, Float value2) {
            addCriterion("air_humidity not between", value1, value2, "airHumidity");
            return (Criteria) this;
        }

        public Criteria andIrrdianceIsNull() {
            addCriterion("irrdiance is null");
            return (Criteria) this;
        }

        public Criteria andIrrdianceIsNotNull() {
            addCriterion("irrdiance is not null");
            return (Criteria) this;
        }

        public Criteria andIrrdianceEqualTo(Float value) {
            addCriterion("irrdiance =", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceNotEqualTo(Float value) {
            addCriterion("irrdiance <>", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceGreaterThan(Float value) {
            addCriterion("irrdiance >", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceGreaterThanOrEqualTo(Float value) {
            addCriterion("irrdiance >=", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceLessThan(Float value) {
            addCriterion("irrdiance <", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceLessThanOrEqualTo(Float value) {
            addCriterion("irrdiance <=", value, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceIn(List<Float> values) {
            addCriterion("irrdiance in", values, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceNotIn(List<Float> values) {
            addCriterion("irrdiance not in", values, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceBetween(Float value1, Float value2) {
            addCriterion("irrdiance between", value1, value2, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andIrrdianceNotBetween(Float value1, Float value2) {
            addCriterion("irrdiance not between", value1, value2, "irrdiance");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureIsNull() {
            addCriterion("component_temperature is null");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureIsNotNull() {
            addCriterion("component_temperature is not null");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureEqualTo(Float value) {
            addCriterion("component_temperature =", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureNotEqualTo(Float value) {
            addCriterion("component_temperature <>", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureGreaterThan(Float value) {
            addCriterion("component_temperature >", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureGreaterThanOrEqualTo(Float value) {
            addCriterion("component_temperature >=", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureLessThan(Float value) {
            addCriterion("component_temperature <", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureLessThanOrEqualTo(Float value) {
            addCriterion("component_temperature <=", value, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureIn(List<Float> values) {
            addCriterion("component_temperature in", values, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureNotIn(List<Float> values) {
            addCriterion("component_temperature not in", values, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureBetween(Float value1, Float value2) {
            addCriterion("component_temperature between", value1, value2, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andComponentTemperatureNotBetween(Float value1, Float value2) {
            addCriterion("component_temperature not between", value1, value2, "componentTemperature");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterionForJDBCDate("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterionForJDBCDate("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterionForJDBCDate("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterionForJDBCDate("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterionForJDBCTime("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterionForJDBCTime("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterionForJDBCTime("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}